﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK.WMS.Common.ValidateRules
{

    [AttributeUsage(AttributeTargets.Property,Inherited =true)]
    public abstract class BaseAbstractAttribute : Attribute
    {
        public BaseAbstractAttribute(string message)
        {
            Message = message;   
        }

        public string? Message  { get; set; }

        public  abstract  (bool, string?) DoValidate(object? value);    

    }
}
